<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


#前台入口
Route::get('/', function () {

//    return view('welcome');
    return view('home');
});


#后台入口
Route::get('/admin', function () {
    return view('admin');
});



//Route::get('/tester/wubuze', 'Tester@wubuze');
//Route::get('/tester/exportExcel', 'Tester@exportExcel');
//Route::any('/tester/importExcel', 'Tester@importExcel');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

//#passport
//Route::get('/redirect', 'HomeController@redirect');
//Route::get('/callback', 'HomeController@callback');
//Route::get('/redirect2', 'HomeController@redirect2');
//
//
////
//Route::get('/getToken', 'ApiToken@getToken');
//
//
//
//Route::get('/passport', function () {
//    return view('passport');
//});
